package org.he.auth.mapper;

import org.he.auth.domain.Role;
import org.he.auth.dto.RoleMenuDTO;
import org.he.auth.dto.RolePermissionDTO;
import org.he.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author he
 * @since 2023-12-02
 */
public interface RoleMapper extends BaseMapper<Role> {

    void saveAuth(RolePermissionDTO dto);

    List<Long> getPermissionById(Long id);

    void deleteAuth(Long id);

    List<Long> getMenusById(Long id);

    void deleteMenu(Long id);

    void saveMenu(RoleMenuDTO dto);
}
